<?php
	$first_category = $data['first_category'];
	$second_category = $data['second_category'];
?>
<dl class="n-box">
	<dt class="n-box-head">
		<div class="n-right">
			<a href="<?=n_url('weixin','groupAdd')?>">新增</a><br/>
		</div>
		<b>
		组管理
	</b></dt>
	<dd>

		<?php foreach ($first_category as $key => $value):?>
		<h3 class="n-sep-top">
			<div class="n-right">
				<?=n_ui(n_url('weixin', 'groupEdit', ['cid'=>$key, 'catetype'=>1]),'编辑')?>
			</div>
			[<?=$value['first_category']?>]
			<!-- <?=$value['forder']?> -->
			<?=$value['fdescription']?>
		</h3>
		<div class="<?=$key?> second_category">
		<?php foreach($second_category[$key] as $value):?>
			<div style="margin-left:20px;">
				<span style="display: inline-block;width:500px;">
					[<?=$value['second_category']?>]
					<!-- <?=$value['sorder']?> -->
					<?=$value['sdescription']?>
					
				</span>
				<?=n_ui(n_url('weixin', 'groupEdit', ['cid'=>$value['sid'], 'catetype'=>2]),"编辑")?>
				<?=n_ui(n_url('weixin', 'groupDel', ['cid'=>$value['sid'], 'catetype'=>2]),"删除")?>
			</div>
		<?php endforeach;?>
		</div>
		<?php endforeach;?>

		
	</dd>
</dl>
